package com.gopay.remote.scs;

import com.gopay.common.domain.cert.CorpMsgSignCert;

/**
 * @CorpMsgSignCertRemoteService
 * @AUTHOR LIUYONG
 * @2016/9/13 10:21 www.gopay.com.cn Inc.All rights reserved.
 */
public interface CorpMsgSignCertRemoteService {

    /**
     * 申请服务器证书
     * @param certAlias   证书别名
     * @param userEmail   申请人邮箱
     * @param password    证书密码
     * @param operId       操作员ID
     * @return
     */
    public CorpMsgSignCert applyCorpMsgSignCert(String certAlias, String userEmail, String password, String operId);


    /**
     * 注销证书
     * @param sn 证书序列号
     * @return
     */
    public boolean revokeCert(String sn);


    /**
     * 根据客户公钥验签
     * @param signStr  原字符串
     * @param signValue  加签字符串
     * @param custId    客户ID
     * @return
     */
    public boolean doCheck(String signStr,String signValue,String custId);
}
